# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-maguro
pkgver=2
pkgrel=14
pkgdesc="Google Galaxy Nexus (GSM)"
url="https://github.com/postmarketOS"
arch="noarch"
license="MIT"
depends="linux-samsung-maguro mkbootimg firmware-samsung-maguro"
makedepends="devicepkg-dev"
install=""
subpackages="$pkgname-mesa"
source="deviceinfo"
options="!check"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

mesa() {
	install_if="$pkgname mesa"
	depends="mesa-dri-swrast"
	mkdir "$subpkgdir"
}

sha512sums="dce64fc8cb993e62ffe3e4ad243ba18bf78dbde27f776f0e9dea9e426709cf5498df82eb049864471db6c3c2683a1f7563ab23b823cf96bf37cc6570b869a0b8  deviceinfo"
